/******************************************************************************************
 * Import
 ******************************************************************************************/

// module
import Taro, { Component } from '@tarojs/taro'

// project
import { CPage, CContent, CHeader, CFooter, CFloat, CAround, CBetween, CCenter, CRow, CWrap, CLine, CHand, CItemX, CItemY, CText, CLabel, CSvg, CImage, CButton } from '../../../library/comp';
import { Base64, Gen, Time, Zip, Session, Storage, Http } from '../../../library/func';
import Icon from '../../../project/style/icon';


/******************************************************************************************
 * Export Class
 ******************************************************************************************/

export default class FeedBack extends Component {

	/*------------------------------------------------------------------------------------
	 * 初始化
	 *-----------------------------------------------------------------------------------*/
	constructor(props) {
		super(props);

		/**
		 * state
		 */
		this.state = {
			postdata:{
				fk_fcid:0,
				set_mobile:'',
				set_content:'',
			}

		}
	}

	/*------------------------------------------------------------------------------------
	 * 生命周期
	 *-----------------------------------------------------------------------------------*/
	// didMount
	componentDidMount() {
		//获取接口数据
		
	}
	
	/*------------------------------------------------------------------------------------
	 * 事件处理
	 *-----------------------------------------------------------------------------------*/
	// onClick
	onClick = (id, e)=> {
        wx.showToast({
            title: '成功',
            icon: 'success',
            duration: 2000
        })          
	}

    // onRedirect
    onRedirect = (url, e)=> {
        wx.redirectTo({
            url: url
        })
    }

    // onNavigate
    onNavigate = (url, e)=> {

	}



	/*------------------------------------------------------------------------------------
	 * 自定义方法
	 *-----------------------------------------------------------------------------------*/

	/*------------------------------------------------------------------------------------
	 * 渲染
	 *-----------------------------------------------------------------------------------*/
	render () {

	

		return (
			<CPage>

				<CContent style="z-index:100">
                    {/* 提交表单 */}
                    <CItemY bg="blue" h="300">

                    </CItemY>

                    {/* 提交区域 */}
                    <CItemY bg="yellow" x="center" y="center" py="25">
                        <CButton y="center" style="width:80%; font-size:12px" bg="red" h="30" onClick={this.onClick.bind(this, 3)}>测试按钮</CButton>
                    </CItemY>

				</CContent>

				{/* Footer */}

			</CPage>
		)
	}
}


